package com.kj.report.model;

import com.alibaba.fastjson.JSONObject;

/**
 * user_info实体类
 * 
 * @author 
 *
 */
public class UserInfo {
	/**用户ID*/
	private Long userId; 
	/**用户名*/
	private String userName; 
	/**用户手机号*/
	private String mobile; 
	/**用户昵称*/
	private String nickName; 
	/**用户邮箱*/
	private String email; 
	/**用户密码*/
	private String password; 
	/**用户年龄*/
	private Integer age; 
	/**微信的openID*/
	private String openId; 
	/**微信的unionID*/
	private String unionId; 
	/**用户性别(0： 未知，1： 男， 2：女  )*/
	private Integer sex; 
	/**用户状态（1 已关注 2 取消关注)*/
	private Integer status; 
	/***/
	private java.time.Instant createDate; 
	/***/
	private java.time.Instant lastLoginDate; 
	/**城市*/
	private String city; 
	/**国家*/
	private String country; 
	/**省份*/
	private String province; 
	/**用户头像*/
	private String headimgurl; 
	/**是否新用户 1 是  2 否*/
	private Integer isNew; 
	/**优惠券使用状态1：未领取 2： 已领取  3 ： 已使用*/
	private String couponStatus; 
	/**身高*/
	private Integer height; 
	/**体重*/
	private Double weight; 
	/**生日*/
	private java.time.Instant birthday; 
	/**登录token*/
	private String token; 
	/**用户来源(wx : 微信  ios : 苹果  android ： 安卓)*/
	private String clientType; 
	/**mac地址*/
	private String macAddress; 
	/**用户类型（1.普通用户  2.供应商）*/
	private Integer userType; 
	/**公司名称*/
	private String companyName; 
	/**1 未发送 2 发送*/
	private Integer sendTbSms; 
	/**
	 * 实例化
	 */
	public UserInfo() {
		super();
	}

	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getUserId() != null) {
			result.put("userId",this.getUserId());
		}
		if (this.getUserName() != null) {
			result.put("userName",this.getUserName());
		}
		if (this.getMobile() != null) {
			result.put("mobile",this.getMobile());
		}
		if (this.getNickName() != null) {
			result.put("nickName",this.getNickName());
		}
		if (this.getEmail() != null) {
			result.put("email",this.getEmail());
		}
		if (this.getPassword() != null) {
			result.put("password",this.getPassword());
		}
		if (this.getAge() != null) {
			result.put("age",this.getAge());
		}
		if (this.getOpenId() != null) {
			result.put("openId",this.getOpenId());
		}
		if (this.getUnionId() != null) {
			result.put("unionId",this.getUnionId());
		}
		if (this.getSex() != null) {
			result.put("sex",this.getSex());
		}
		if (this.getStatus() != null) {
			result.put("status",this.getStatus());
		}
		if (this.getCreateDate() != null) {
			result.put("createDate",this.getCreateDate());
		}
		if (this.getLastLoginDate() != null) {
			result.put("lastLoginDate",this.getLastLoginDate());
		}
		if (this.getCity() != null) {
			result.put("city",this.getCity());
		}
		if (this.getCountry() != null) {
			result.put("country",this.getCountry());
		}
		if (this.getProvince() != null) {
			result.put("province",this.getProvince());
		}
		if (this.getHeadimgurl() != null) {
			result.put("headimgurl",this.getHeadimgurl());
		}
		if (this.getIsNew() != null) {
			result.put("isNew",this.getIsNew());
		}
		if (this.getCouponStatus() != null) {
			result.put("couponStatus",this.getCouponStatus());
		}
		if (this.getHeight() != null) {
			result.put("height",this.getHeight());
		}
		if (this.getWeight() != null) {
			result.put("weight",this.getWeight());
		}
		if (this.getBirthday() != null) {
			result.put("birthday",this.getBirthday());
		}
		if (this.getToken() != null) {
			result.put("token",this.getToken());
		}
		if (this.getClientType() != null) {
			result.put("clientType",this.getClientType());
		}
		if (this.getMacAddress() != null) {
			result.put("macAddress",this.getMacAddress());
		}
		if (this.getUserType() != null) {
			result.put("userType",this.getUserType());
		}
		if (this.getCompanyName() != null) {
			result.put("companyName",this.getCompanyName());
		}
		if (this.getSendTbSms() != null) {
			result.put("sendTbSms",this.getSendTbSms());
		}
		return result;
	}
	
	
	/**
	 * 获取userId
	 * 
	 * @return
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * 设置userId
	 * 
	 * @param userId
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	/**
	 * 获取userName
	 * 
	 * @return
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * 设置userName
	 * 
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	/**
	 * 获取mobile
	 * 
	 * @return
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * 设置mobile
	 * 
	 * @param mobile
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	/**
	 * 获取nickName
	 * 
	 * @return
	 */
	public String getNickName() {
		return nickName;
	}

	/**
	 * 设置nickName
	 * 
	 * @param nickName
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	
	/**
	 * 获取email
	 * 
	 * @return
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * 设置email
	 * 
	 * @param email
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	
	/**
	 * 获取password
	 * 
	 * @return
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * 设置password
	 * 
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * 获取age
	 * 
	 * @return
	 */
	public Integer getAge() {
		return age;
	}

	/**
	 * 设置age
	 * 
	 * @param age
	 */
	public void setAge(Integer age) {
		this.age = age;
	}
	
	/**
	 * 获取openId
	 * 
	 * @return
	 */
	public String getOpenId() {
		return openId;
	}

	/**
	 * 设置openId
	 * 
	 * @param openId
	 */
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	
	/**
	 * 获取unionId
	 * 
	 * @return
	 */
	public String getUnionId() {
		return unionId;
	}

	/**
	 * 设置unionId
	 * 
	 * @param unionId
	 */
	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}
	
	/**
	 * 获取sex
	 * 
	 * @return
	 */
	public Integer getSex() {
		return sex;
	}

	/**
	 * 设置sex
	 * 
	 * @param sex
	 */
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	
	/**
	 * 获取status
	 * 
	 * @return
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 设置status
	 * 
	 * @param status
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	/**
	 * 获取createDate
	 * 
	 * @return
	 */
	public java.time.Instant getCreateDate() {
		return createDate;
	}

	/**
	 * 设置createDate
	 * 
	 * @param createDate
	 */
	public void setCreateDate(java.time.Instant createDate) {
		this.createDate = createDate;
	}
	
	/**
	 * 获取lastLoginDate
	 * 
	 * @return
	 */
	public java.time.Instant getLastLoginDate() {
		return lastLoginDate;
	}

	/**
	 * 设置lastLoginDate
	 * 
	 * @param lastLoginDate
	 */
	public void setLastLoginDate(java.time.Instant lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}
	
	/**
	 * 获取city
	 * 
	 * @return
	 */
	public String getCity() {
		return city;
	}

	/**
	 * 设置city
	 * 
	 * @param city
	 */
	public void setCity(String city) {
		this.city = city;
	}
	
	/**
	 * 获取country
	 * 
	 * @return
	 */
	public String getCountry() {
		return country;
	}

	/**
	 * 设置country
	 * 
	 * @param country
	 */
	public void setCountry(String country) {
		this.country = country;
	}
	
	/**
	 * 获取province
	 * 
	 * @return
	 */
	public String getProvince() {
		return province;
	}

	/**
	 * 设置province
	 * 
	 * @param province
	 */
	public void setProvince(String province) {
		this.province = province;
	}
	
	/**
	 * 获取headimgurl
	 * 
	 * @return
	 */
	public String getHeadimgurl() {
		return headimgurl;
	}

	/**
	 * 设置headimgurl
	 * 
	 * @param headimgurl
	 */
	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}
	
	/**
	 * 获取isNew
	 * 
	 * @return
	 */
	public Integer getIsNew() {
		return isNew;
	}

	/**
	 * 设置isNew
	 * 
	 * @param isNew
	 */
	public void setIsNew(Integer isNew) {
		this.isNew = isNew;
	}
	
	/**
	 * 获取couponStatus
	 * 
	 * @return
	 */
	public String getCouponStatus() {
		return couponStatus;
	}

	/**
	 * 设置couponStatus
	 * 
	 * @param couponStatus
	 */
	public void setCouponStatus(String couponStatus) {
		this.couponStatus = couponStatus;
	}
	
	/**
	 * 获取height
	 * 
	 * @return
	 */
	public Integer getHeight() {
		return height;
	}

	/**
	 * 设置height
	 * 
	 * @param height
	 */
	public void setHeight(Integer height) {
		this.height = height;
	}
	
	/**
	 * 获取weight
	 * 
	 * @return
	 */
	public Double getWeight() {
		return weight;
	}

	/**
	 * 设置weight
	 * 
	 * @param weight
	 */
	public void setWeight(Double weight) {
		this.weight = weight;
	}
	
	/**
	 * 获取birthday
	 * 
	 * @return
	 */
	public java.time.Instant getBirthday() {
		return birthday;
	}

	/**
	 * 设置birthday
	 * 
	 * @param birthday
	 */
	public void setBirthday(java.time.Instant birthday) {
		this.birthday = birthday;
	}
	
	/**
	 * 获取token
	 * 
	 * @return
	 */
	public String getToken() {
		return token;
	}

	/**
	 * 设置token
	 * 
	 * @param token
	 */
	public void setToken(String token) {
		this.token = token;
	}
	
	/**
	 * 获取clientType
	 * 
	 * @return
	 */
	public String getClientType() {
		return clientType;
	}

	/**
	 * 设置clientType
	 * 
	 * @param clientType
	 */
	public void setClientType(String clientType) {
		this.clientType = clientType;
	}
	
	/**
	 * 获取macAddress
	 * 
	 * @return
	 */
	public String getMacAddress() {
		return macAddress;
	}

	/**
	 * 设置macAddress
	 * 
	 * @param macAddress
	 */
	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}
	
	/**
	 * 获取userType
	 * 
	 * @return
	 */
	public Integer getUserType() {
		return userType;
	}

	/**
	 * 设置userType
	 * 
	 * @param userType
	 */
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	
	/**
	 * 获取companyName
	 * 
	 * @return
	 */
	public String getCompanyName() {
		return companyName;
	}

	/**
	 * 设置companyName
	 * 
	 * @param companyName
	 */
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	/**
	 * 获取sendTbSms
	 * 
	 * @return
	 */
	public Integer getSendTbSms() {
		return sendTbSms;
	}

	/**
	 * 设置sendTbSms
	 * 
	 * @param sendTbSms
	 */
	public void setSendTbSms(Integer sendTbSms) {
		this.sendTbSms = sendTbSms;
	}

	@Override
	public String toString() {
		return "UserInfo [userId=" + userId + " , userName=" + userName + " , mobile=" + mobile + " , nickName=" + nickName + " , email=" + email + " , password=" + password + " , age=" + age + " , openId=" + openId + " , unionId=" + unionId + " , sex=" + sex + " , status=" + status + " , createDate=" + createDate + " , lastLoginDate=" + lastLoginDate + " , city=" + city + " , country=" + country + " , province=" + province + " , headimgurl=" + headimgurl + " , isNew=" + isNew + " , couponStatus=" + couponStatus + " , height=" + height + " , weight=" + weight + " , birthday=" + birthday + " , token=" + token + " , clientType=" + clientType + " , macAddress=" + macAddress + " , userType=" + userType + " , companyName=" + companyName + " , sendTbSms=" + sendTbSms + "  ]";
	
	}
	
	
}
